package gao.xaiolei.enity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "task_group")
public class TaskGroup {

	@EmbeddedId
	private TaskGroupId id;

	public TaskGroup(String taskId, String groupId) {
		super();
		this.id = new TaskGroupId(taskId, groupId);
	}

	public TaskGroup() {
		super();
	}

	public TaskGroupId getId() {
		return id;
	}

	public void setId(String taskId, String groupId) {
		this.id.setTASK_ID(taskId);
		this.id.setGROUP_ID(groupId);
	}

	public String getTaskId() {
		return id.getTASK_ID();
	}

	public void setTaskId(String taskId) {
		this.id.setTASK_ID(taskId);
	}

	public String getGroupId() {
		return id.getGROUP_ID();
	}

	public void setGroupId(String groupId) {
		this.id.setGROUP_ID(groupId);
	}

}
